package baiwa.rta.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import baiwa.rta.dao.FunctionRoomUsageDao;
import baiwa.rta.model.DataTableModel;
import baiwa.rta.model.RMfruhdrModel;
import baiwa.rta.service.FunctionRoomUsage;

@Service("FunctionRoomUsage")
public class FunctionRoomUsageImpl implements FunctionRoomUsage {

	@Autowired
	private FunctionRoomUsageDao functionRoomUsageDao; 
	@Override
	public List<RMfruhdrModel> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public RMfruhdrModel findById(Integer id) {
		return functionRoomUsageDao.findById(id);
	}

	@Override
	public void create(RMfruhdrModel model) throws Exception {
		functionRoomUsageDao.create(model);
	}

	@Override
	public boolean update(RMfruhdrModel model) {
		return functionRoomUsageDao.update(model);
	}

	@Override
	public boolean delete(RMfruhdrModel model) {
		return functionRoomUsageDao.delete(model);
	}

	@Override
	public DataTableModel<RMfruhdrModel> getUsersDataTable(RMfruhdrModel model,	int iDisplayStart, int iDisplayLength) {
		return functionRoomUsageDao.getUsersDataTable(model, iDisplayStart, iDisplayLength);
	}


}
